package com.danciyixue.boot.dcyx.model.form;

import com.danciyixue.boot.dcyx.model.enums.EffectiveDurationOption;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.Max;
import jakarta.validation.constraints.Min;
import jakarta.validation.constraints.NotNull;
import lombok.Getter;
import lombok.Setter;

import java.io.Serial;
import java.io.Serializable;

/**
 * 批量新增账号请求体
 */
@Getter
@Setter
@Schema(description = "批量新增账号请求体")
public class DcyxUsersBatchCreateForm implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    @Schema(description = "批量创建账号数量，范围1-200")
    @NotNull(message = "批量创建数量不能为空")
    @Min(value = 1, message = "批量创建数量不能小于1")
    @Max(value = 200, message = "批量创建数量不能超过200")
    private Integer quantity;

    @Schema(description = "账号有效时长选项")
    @NotNull(message = "有效时长不能为空")
    private EffectiveDurationOption effectiveDuration;
}
